package com.icity.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.icity.common.Result;
import com.icity.service.HomePageService;

@RestController
@RequestMapping(value="/admin/homepage")
public class HomePageController {
  @Autowired
  private HomePageService homePageService;
  @RequestMapping(value="/gethomepagedatas")
  public Result getHomePageDatas(String partner_id) {
	  Result result=null;
	 try {
		 result=homePageService.getHomePageDatas(partner_id);
	} catch (Exception e) {
		result=new Result();
		result.setCode("-1");
		result.setMessage("获取首页数据异常");
	}
	  
	  return null;
  }
}
